public class Activity {

    //1.活动类型1， 水果折扣2.满减折扣
    private int type;
    //水果名称
    private String fruitName;
    //折扣
    private Double discount;
    //满多少金额
    private Double totalMoney;
    //减多少金额
    private Double subtractMoney;

    public Activity(int type, String fruitName, Double discount) {//打折活动的构造器
        this.type = type;
        this.fruitName = fruitName;
        this.discount = discount;
    }

    public Activity(int type, Double totalMoney, Double subtractMoney) {//满减活动的构造器
        this.type = type;
        this.totalMoney = totalMoney;
        this.subtractMoney = subtractMoney;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getFruitName() {
        return fruitName;
    }

    public void setFruitName(String fruitName) {
        this.fruitName = fruitName;
    }

    public Double getDiscount() {
        return discount;
    }

    public void setDiscount(Double discount) {
        this.discount = discount;
    }

    public Double getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(Double totalMoney) {
        this.totalMoney = totalMoney;
    }

    public Double getSubtractMoney() {
        return subtractMoney;
    }

    public void setSubtractMoney(Double subtractMoney) {
        this.subtractMoney = subtractMoney;
    }
}
